#ifndef ENEMY_10_WARNING_H
#define ENEMY_10_WARNING_H

#include <QtGui>
#include "cash.h"
#include "sound_power.h"

class ENEMY_10_WARNING : public QGraphicsObject
{

    Q_OBJECT

    QGraphicsItemAnimation *anim_enemy;
    QTimeLine *enemy_time_line;

    int timer_id;

    bool blink;

    QPixmap *warning;
    QPixmap *ship;

    int counter;

    SOUND_POWER *go;

public:

    explicit ENEMY_10_WARNING(CASH *cash);

    void timerEvent(QTimerEvent *);

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    ~ENEMY_10_WARNING();
    
signals:

    void Kill_Me_Please(QGraphicsObject *);
    
public slots:
    
    void Send_Kill_Me();

};

#endif // ENEMY_10_WARNING_H
